import request from "@/services"

// 获取歌单详情
export const getPlaylistDetailAPI = (id: number) => {
  return request.get<any>({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}

// 获取歌单歌曲
export const getPlaylistTrackAllAPI = (id: number, limit: number, offset: number) => {
  return request.get<any>({
    url: '/playlist/track/all',
    params: {
      id,
      limit,
      offset
    }
  })
} 